using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class LauncherBoosterSettings 
{
    #region ConnectRemote
    public static bool ConnectRemote
    {
        get
        {
            var _default = ConnectRemote_GetDefault();
            return PlayerPrefsUtil.GetBool(nameof(ConnectRemote), _default);
        }
        set
        {
            PlayerPrefsUtil.SetBool(nameof(ConnectRemote), value);
        }
    }

    public static bool ConnectRemote_GetDefault() => false;
    public static void ConnectRemote_DeleteLocalCache() => PlayerPrefs.DeleteKey(nameof(ConnectRemote));
    #endregion

    #region MaintainCheck
    public static bool MaintainCheck
    {
        get
        {
            var _default = MaintainCheck_GetDefault();
            return PlayerPrefsUtil.GetBool(nameof(MaintainCheck), _default);
        }
        set
        {
            PlayerPrefsUtil.SetBool(nameof(MaintainCheck), value);
        }
    }

    public static bool MaintainCheck_GetDefault() => true;
    public static void MaintainCheck_DeleteLocalCache() => PlayerPrefs.DeleteKey(nameof(MaintainCheck));
    #endregion

    #region ResUpdate
    public static bool ResUpdate
    {
        get
        {
            var _default = ResUpdate_GetDefault();
            return PlayerPrefsUtil.GetBool(nameof(ResUpdate), _default);
        }
        set
        {
            PlayerPrefsUtil.SetBool(nameof(ResUpdate), value);
        }
    }

    public static bool ResUpdate_GetDefault() => true;
    public static void ResUpdate_DeleteLocalCache() => PlayerPrefs.DeleteKey(nameof(ResUpdate));
    #endregion


}
